package com.shisfish.library.Inter;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shisfish.core.Inter.IModelInter;
import com.shisfish.library.Model.User;

public interface IUserInter extends IModelInter<User> {

	public List<Map<String, Object>> selectUserLessByEmployee(@Param("employee") String employee);
	
	public List<User> selectByLoanid(@Param("loanid") String loanid);
	
	public List<User> selectByEmployee(@Param("employee") String employee);
	
	public List<User> selectByUserId(@Param("userId") String userId);
	
	public List<Map<String, Object>> selectUserId(@Param("userId") String userId);
	
	public List<User> selectAllPage(@Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByLoanid(@Param("loanid") String loanid);
	
	public List<User> selectByLoanidPage(@Param("loanid") String loanid, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countBySex(@Param("sex") int sex);
	
	public List<User> selectBySexPage(@Param("sex") String sex, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByDepartment(@Param("department") String department);
	
	public List<User> selectByDepartmentPage(@Param("department") String department, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByUsername(@Param("username") String username);
	
	public List<User> selectByUsernamePage(@Param("username") String username, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByUserId(@Param("userId") String userId);
	
	public List<User> selectByUserIdPage(@Param("userId") String userId, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countByCho(@Param("choose") String choose);
	
	public List<User> selectByCho(@Param("choose") String choose, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
}
